奈飞中文[自动].js 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. var rule = {
  2. 模板: '自动',
  3. 模板修改: $js.toString(() => {
  4. muban.自动.二级.tabs = '.module-tab-item.tab-item';
  5. muban.自动.二级.img = '.lazyload&&src';
  6. muban.自动.二级.tab_text = 'div--small&&Text';
  7. }),
  8. title: '奈飞中文[自动]',
  9. host: 'https://www.naifei.io',
  10. url: '/vodshow/id/fyclass/page/fypage.html',
  11. class_parse: '.nav&&ul&&li;a&&Text;a&&href;.*/(.*?).html',
  12. searchUrl: '/index.php/rss/index.xml?wd=**',
  13. 搜索: $js.toString(() => {
  14. let html = request(input);
  15. let items = pdfa(html, 'rss&&item');
  16. // log(items);
  17. let d = [];
  18. items.forEach(it => {
  19. it = it.replace(/title|link|author|pubdate|description/g, 'p');
  20. let url = pdfh(it, 'p:eq(1)&&Text');
  21. d.push({
  22. title: pdfh(it, 'p&&Text'),
  23. url: url,
  24. desc: pdfh(it, 'p:eq(3)&&Text'),
  25. content: pdfh(it, 'p:eq(4)&&Text'),
  26. pic_url: "",
  27. });
  28. });
  29. setResult(d);
  30. }),
  31. }